<%--
  Created by IntelliJ IDEA.
  role: admin
  Date: 2021/9/11
  Time: 13:30
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>角色列表</title>
</head>
<body>
<center>
    <h1>角色列表</h1>
    <a href="<%=basePath%>view/system/role/addRole.jsp">增加</a>
    <hr>
    <table width="80%" border="1">
        <tr>
            <td>ID</td>
            <td>角色名称</td>
            <td>角色编码</td>
          
            <td colspan="2">操作</td>
        </tr>
        <c:forEach items="${role_dbList}" var="role">
            <tr>
                <td>${role.roleId}</td>
                <td>${role.roleName}</td>
                <td>${role.roleCode}</td>
                <td><a href="<%=basePath%>roleController/delete.do?roleIdStr=${role.roleId}">删除</a></td>
                <td><a href="<%=basePath%>roleController/updateUI.do?roleIdStr=${role.roleId}">修改</a></td>
                <td><a href="<%=basePath%>permissionController/FPPermissionUI.do?roleIdStr=${role.roleId}">分配权限</a></td>
            </tr>
        </c:forEach>
    </table>
    <P>&nbsp;</P>
    <input type="button" value="首页">
    <input type="button" value="下一页">
    <input type="button" value="1">
    <input type="button" value="2">
    <input type="button" value="3">
    <input type="button" value="4">
    <input type="button" value="5">
    <input type="button" value="6">
    <input type="button" value="7">
    <input type="button" value="8">
    <input type="button" value="9">
    <input type="button" value="10">
    <input type="button" value="上一页">
    <input type="button" value="首页">
</center>
</body>
</html>
